

package com.yz.common.entity;

import com.baomidou.mybatisplus.annotations.TableName;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;


/**
 * 勘探记录
 */
@TableName("tb_survey_record")
public class SurveyRecordEntity implements Serializable {
	private long id;
	private String title;
	private String content;
	@NotNull(message = "创建时间不能为空")
	private Date createAt;
	@NotNull(message = "创建者不能为空")
	private String createUser;
	@Min(value = 1,message = "请填写正确的项目id")
	private long projectId;
	private Date deleteAt;
	private Date updateAt;

	public void setId(long id) {
		this.id = id;
	}


	public void setTitle(String title) {
		this.title = title;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public void setCreateAt(Date createAt) {
		this.createAt = createAt;
	}


	public void setCreateUser(String createUser) {
		this.createUser = createUser;
	}


	public void setProjectId(long projectId) {
		this.projectId = projectId;
	}


	public void setDeleteAt(Date deleteAt) {
		this.deleteAt = deleteAt;
	}

	public void setUpdateAt(Date updateAt) {
		this.updateAt = updateAt;
	}

	public long getId() {
		return id;
	}

	public String getTitle() {
		return title;
	}

	public String getContent() {
		return content;
	}

	public Date getCreateAt() {
		return createAt;
	}


	public String getCreateUser() {
		return createUser;
	}


	public long getProjectId() {
		return projectId;
	}


	public Date getDeleteAt() {
		return deleteAt;
	}

	public Date getUpdateAt() {
		return updateAt;
	}
}